<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <ul>
        <li>我是第1个小li</li>
        <li>我是第2个小li</li>
        <li>我是第3个小li</li>
        <li>我是第4个小li</li>
        <li>我是第5个小li</li>
    </ul>
    <script>
        let ul = document.querySelector('ul')
        ul.addEventListener('click', function (e) {
            // alert(11)
            // console.log(e);
            console.log(e.target);
            e.target.style.color = 'red'
        })  
    </script>
</body>

</html>